﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StandardFeatures
{
    public class ConsoleTalker
    {
        public static void Write(string content, ConsoleColor color)
        {
            ConsoleColor old = Console.ForegroundColor;
            Console.ForegroundColor = color;
            Console.Write(content);
            Console.ForegroundColor = old;
        }

        public static void WriteLine(string content, ConsoleColor color)
        {
            ConsoleColor old = Console.ForegroundColor;
            Console.ForegroundColor = color;
            Console.WriteLine(content);
            Console.ForegroundColor = old;
        }

        public static void Flush()
        {
            Console.Out.Flush();
        }
    }
}
